@model University.Models.Faculty

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Faculty</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">DeanName</div>
    <div class="display-field">@Model.DeanName</div>

    <div class="display-label">Address</div>
    <div class="display-field">@Model.Address</div>

    <div class="display-label">Description</div>
    <div class="display-field">@Model.Description</div>

    <div class="display-label">Departments</div>
    <div class="display-field">@(Model.Departments == null ? "None" : Model.Departments.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.FacultyId }) |
    @Html.ActionLink("Back to List", "Index")
</p>


